#!/usr/bin/env  node

const koa=require('koa');
const app=new koa(),
      log=console.log;


console.log('hello wangyibo');




app.use((ctx,next)=>{//m-logger
  log(`${ctx.method} ${ctx.path}  `);

  next();//diaoyong  xiamian

})





app.use((ctx,next)=>{//m.hello


  ctx.body='hello koa';

})


app.listen(8080);
